POV-Ray : Newsgroups : povray.newusers : vector data structure : Re: vector data structure Server Time
30 Jul 2024 14:19:43 EDT (-0400)
  Re: vector data structure  
From: Kurts
Date: 21 Feb 2004 06:11:15
Message: <kurtzlepirate-936ACA.12111421022004@news.povray.org>
In article <40367141@news.povray.org>, "bongotastic" <cbl### [at] csdalca> wrote:

> Hi,
> 
>     I assume this can be found somewhere in some documents. If you know it
> from the top of your head, please let me know.
> 
>     I am trying to change one components of a vector:
> 
> #declare pt = <0,0,0>;
> #declare pt = VRand_On_Sphere(MySeed);
> #declare pt.z = pt.z / 2.0;
> 
> The third line does not process, saying that  a '=' is expected but a '.' is
> found. The docs indicate that it should work. Am I declaring my variable pt
> wrong?
> 
> Thanks for your help.
> 
> bongo
> 
> 

  #set pt = <pt.x, pt.y, pt.z*0.50>;


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.